﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="CreateAuction.aspx.cs" Inherits="CreateAuction" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="main" style="width: 834px; height: 364px;">
        <table style="width: 100%; height: 100%;">
            <tr>
                <td width="50%">
                    <asp:Label ID="Label2" runat="server" Text="This auction will be associate with user:"></asp:Label>
                </td>
                <td width="50%">
                    <asp:Label ID="userLbl" runat="server" Text="user goes here!"></asp:Label>
                </td>
            </tr>
            <tr>
                <td width="50%">
                    <asp:Label ID="Label4" runat="server" Text="This auction will begin at:"></asp:Label>
                </td>
                <td width="50%">
                    <asp:Label ID="timeLbl" runat="server" Text="time goes here!"></asp:Label>
                </td>
            </tr>
            <tr>
                <td width="50%">
                    <asp:Label ID="Label6" runat="server" Text="ID number:"></asp:Label>
                </td>
                <td width="50%">
                    <asp:Label ID="idLbl" runat="server" Text="id goes here!"></asp:Label>
                </td>
            </tr>
            <tr>
                <td width="50%">
                    <asp:Label ID="Label8" runat="server" Text="Title for the auction:"></asp:Label>
                &nbsp;
                </td>
                <td width="50%">
                    <asp:TextBox ID="titleBx" runat="server"></asp:TextBox>
                &nbsp;
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="titleBx"
                ErrorMessage="Required field  "></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td width="50%">
                    <asp:Label ID="Label9" runat="server" Text="Item number (1=Oranges 2=Limes 3=Lemons 4=Cranberries 5=Avocados 6=Cheese 7=Milk 8=Cream Cheese 9=Sour Cream 10=Yogurt 11=Squash 12=Celery 13=Green Beans 14=Corn 15=Broccoli):"></asp:Label>
                &nbsp;
                    <asp:RangeValidator ID="RangeValidator1" runat="server" 
                        ControlToValidate="itemNoBx" ErrorMessage="Must be a number in this range!" 
                        MaximumValue="15" MinimumValue="1" Type="Integer"></asp:RangeValidator>
                </td>
                <td width="50%">
                    <asp:TextBox ID="itemNoBx" runat="server"></asp:TextBox>
                &nbsp;
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="itemNoBx"
                ErrorMessage="Required field  "></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td width="50%">
                    <asp:Label ID="Label10" runat="server" Text="Minimum starting bid ($xx.xx):"></asp:Label>
                &nbsp;
                    <asp:RangeValidator ID="RangeValidator2" runat="server" 
                        ControlToValidate="minBx" ErrorMessage="Must be an amount in this format!" 
                        MaximumValue="5000000.00" MinimumValue="0.00" Type="Currency"></asp:RangeValidator>
                </td>
                <td width="50%">
                    <asp:TextBox ID="minBx" runat="server"></asp:TextBox>
                &nbsp;
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="minBx"
                ErrorMessage="Required field  "></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td width="50%">
                    <asp:Label ID="Label11" runat="server" Text="Instant purchase price ($xx.xx):"></asp:Label>
                &nbsp;
                    <br />
                    <asp:RangeValidator ID="RangeValidator3" runat="server" 
                        ControlToValidate="instantBx" ErrorMessage="Must be an amount in this format!" 
                        MaximumValue="5000000.00" MinimumValue="0.00" Type="Currency"></asp:RangeValidator>
                    <br />
                </td>
                <td width="50%">
                    <asp:TextBox ID="instantBx" runat="server"></asp:TextBox>
                &nbsp;
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="instantBx"
                ErrorMessage="Required field  "></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td width="50%">
                    <asp:Label ID="Label12" runat="server" Text="End Date (x/x/xxxx);"></asp:Label>
                &nbsp;
                    <asp:RangeValidator ID="RangeValidator4" runat="server" 
                        ControlToValidate="endBx" ErrorMessage="Must be an date!" 
                        MaximumValue="1/1/2100" MinimumValue="1/1/2011" Type="Date"></asp:RangeValidator>
                </td>
                <td width="50%">
                    <asp:TextBox ID="endBx" runat="server"></asp:TextBox>
                &nbsp;
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="endBx"
                ErrorMessage="Required field  "></asp:RequiredFieldValidator>
                </td>
            </tr>
        </table>
    </div>
    <br />
    <table style="width: 100%">
        <tr>
            <td width="50%">
                <asp:Button ID="exitBtn" runat="server" Text="Return Home" 
                    onclick="exitBtn_Click" class="button rounded-corners"/>
            </td>
            <td width="50%">
                <asp:Button ID="createBtn" runat="server" Text="Create Auction" 
                    onclick="createBtn_Click" class="button rounded-corners"/>
            </td>
        </tr>
    </table>
</asp:Content>
